package com.lclz.service.security;

import java.util.Collection;
import java.util.Map;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

public class UserDetail extends User {
	private static final long serialVersionUID = 1L;
	private Map<String, Object> map = null;
	private String firstSysmanUrl = "";

	public UserDetail(String userName, String password,
			Collection<? extends GrantedAuthority> authorities) {
		super(userName, password, authorities);
	}

	public UserDetail(String userName, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(userName, password, enabled, accountNonExpired,
				credentialsNonExpired, accountNonLocked, authorities);
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	public String getFirstSysmanUrl() {
		return firstSysmanUrl;
	}

	public void setFirstSysmanUrl(String firstSysmanUrl) {
		this.firstSysmanUrl = firstSysmanUrl;
	}

}
